package com.scalar.chiptrack.sales.forms;


import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;

import com.scalar.chiptrack.ChipTrackActionForm;


public final class AddNewSalesPersonForm extends ChipTrackActionForm {

    private String newSalesPerson = null;
    private String oldSalesPerson = null;

    private String address1      = null;
    private String address2      = null;
    private String address3      = null;
    private String address4      = null;
    private String city          = null;
    private String state         = null;
    private String zipCode       = null;
    private String country       = null;
    private String phoneNumber   = null;
    private String faxNumber     = null;
    private String email         = null;
    private String cellNumber    = null;
    private int salesPersonId    = -1;
    private float salesPercent   = 0.0f;
    private int regionId        = -1;
    private boolean salesAckMail;
    private boolean quoteAckMail;
    private boolean shipAlerts;


    public AddNewSalesPersonForm() {
    }

    public String getNewSalesPerson() {

        return newSalesPerson;
    }

    public void setNewSalesPerson (String salesPerson) {
        newSalesPerson = salesPerson;
    }

    public String getOldSalesPerson() {
        return oldSalesPerson;
    }

    public void setOldSalesPerson(String oldSalesPerson) {
        this.oldSalesPerson = oldSalesPerson;
    }

    public String getAddress1() {
        return address1;
    }

    public void setAddress1(String address1) {
        this.address1 = address1;
    }

    public String getAddress2() {
        return address2;
    }

    public void setAddress2(String address2) {
        this.address2 = address2;
    }

    public String getAddress3() {
        return address3;
    }

    public void setAddress3(String address3) {
        this.address3 = address3;
    }

    public String getAddress4() {
        return address4;
    }

    public void setAddress4(String address4) {
        this.address4 = address4;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getFaxNumber() {
        return faxNumber;
    }

    public void setFaxNumber(String faxNumber) {
        this.faxNumber = faxNumber;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCellNumber() {
        return cellNumber;
    }

    public void setCellNumber(String cellNumber) {
        this.cellNumber = cellNumber;
    }

    public int getSalesPersonId() {
        return salesPersonId;
    }

    public void setSalesPersonId(int salesPersonId) {
        this.salesPersonId = salesPersonId;
    }

    public float getSalesPercent() {
        return salesPercent;
    }

    public void setSalesPercent(float salesPercent) {
        this.salesPercent = salesPercent;
    }

    public int getRegionId() {
        return regionId;
    }

    public void setRegionId(int regionId) {
        this.regionId = regionId;
    }


    public void reset( ActionMapping  mapping, HttpServletRequest request )
    {
        newSalesPerson = null;
        oldSalesPerson = null;
        address1      = null;
        address2      = null;
        address3      = null;
        address4      = null;
        city          = null;
        state         = null;
        zipCode       = null;
        country       = null;
        phoneNumber   = null;
        faxNumber     = null;
        email         = null;
        cellNumber    = null;
        salesPersonId = -1;
        salesPercent  = 0.0f;
        regionId      = -1;
        salesAckMail = false;
        quoteAckMail = false;
        shipAlerts = false;
    }

    public boolean isSalesAckMail() {
        return salesAckMail;
    }

    public void setSalesAckMail(boolean salesAckMail) {
        this.salesAckMail = salesAckMail;
    }

    public boolean isQuoteAckMail() {
        return quoteAckMail;
    }

    public void setQuoteAckMail(boolean quoteAckMail) {
        this.quoteAckMail = quoteAckMail;
    }

    public boolean isShipAlerts() {
        return shipAlerts;
    }

    public void setShipAlerts(boolean shipAlerts) {
        this.shipAlerts = shipAlerts;
    }
}